package com.neusoft.controller.physician;

import com.neusoft.service.MedicalTechnologyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("/medicals")
//@CrossOrigin
public class MedicalTechnologyController2 {

    @Autowired
    private MedicalTechnologyService medicalTechnologyService;

    @GetMapping("/searchMedicalTechnologyjc")
    public List<Map<String,Object>> searchMedicalTechnology(String techCode,String techName){
        List<Map<String,Object>> list= medicalTechnologyService.searchMedicalTechnology(techCode,techName);
        return list;
    }
    @GetMapping("/searchMedicalTechnologyjy")
    public List<Map<String,Object>> searchMedicalTechnologyjy(String techCode,String techName){
        List<Map<String,Object>> list= medicalTechnologyService.searchMedicalTechnologyjy(techCode,techName);
        return list;
    }
    @GetMapping("/searchMedicalTechnologycc")
    public List<Map<String,Object>> searchMedicalTechnologycc(String techCode,String techName){
        List<Map<String,Object>> list= medicalTechnologyService.searchMedicalTechnologycc(techCode,techName);
        return list;
    }
}
